// Connect to server 
const WebSocket = require("ws");
var socket = new WebSocket("ws://123.57.129.108:3080?EIO=4&transport=websocket")
// var socket = io.connect('ws://123.57.129.108:3080?EIO=4&transport=websocket', { reconnect:true }); 
// Add a connect listener 
socket.on('connect', function() { 
    console.log('Connected!'); 
    socket.emit("open", {userId:1})
    socket.on("data", function(data){
        console.log("----返回数据----")
        console.log(data)
    })
}); 
